// #ifndef VUE3
import Vue from 'vue'
import store from './store'
import paths from "./api/path"
import tools from "./utils/tools.js"
import App from './App'
import uView from "uview-ui";
import topCommonTitleBar from "components/topCommonTitleBar/topCommonTitleBar.vue"

Vue.use(uView);
Vue.prototype.$store = store; //挂在到Vue实例上
Vue.prototype.$paths = paths; //请求地址
Vue.prototype.$tools = tools; //工具类
Vue.config.productionTip = false


// 全局挂载goEasy
import goEasy from 'goeasy';
Vue.prototype.$goEasy = goEasy.getInstance({
	host: "hangzhou.goeasy.io", //若是新加坡区域：singapore.goeasy.io
	appkey: "BC-2d04526a2e3843e1a155de771785533c",
	modules: ['pubsub'] //根据需要，传入‘pubsub’或'im’，或数组方式同时传入
});


//挂载常用封装方法
import used from './utils/used.js';
import checkView from "@/api/checkView.js"
Vue.prototype.$used = used;
Vue.prototype.$checkView = checkView;

//挂载zego
import zegoZim from './utils/zegoZim.js';
Vue.prototype.$zegoZim = zegoZim;


import h5Url from "@/api/h5Url.js" //H5分享公共路径
Vue.prototype.$h5Url = h5Url

App.mpType = 'app'

const app = new Vue({
	...App
})


Vue.component("topCommonTitleBar", topCommonTitleBar)

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif